home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / MoreKittiesPlease / Source / CBasicApp.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.3 KB  |  64 lines

  1. // ===========================================================================
  2. //    CBasicApp.h                    ©1994-1999 Metrowerks Inc. All rights reserved.
  3. // ===========================================================================
  4.  
  5. #ifndef _H_CBasicApp
  6. #define _H_CBasicApp
  7. #pragma once
  8.  
  9. #include <LApplication.h>
  10. #include <LListener.h>
  11.  
  12. class CBasicApp : public LApplication,
  13.                             LListener {
  14.  
  15. public:
  16.                             CBasicApp();
  17.     virtual                    ~CBasicApp();
  18.  
  19.     virtual Boolean            ObeyCommand(
  20.                                 CommandT            inCommand,
  21.                                 void*                ioParam = nil);    
  22.  
  23.     virtual void            FindCommandStatus(
  24.                                 CommandT            inCommand,
  25.                                 Boolean&            outEnabled,
  26.                                 Boolean&            outUsesMark,
  27.                                 UInt16&                outMark,
  28.                                 Str255                outName);
  29.  
  30.     virtual void            ListenToMessage(
  31.                                 MessageT        inMessage,
  32.                                 void*            ioParam);
  33.  
  34. protected:
  35.     virtual void            StartUp();
  36.     
  37.             void            RegisterClasses();
  38.             
  39.             void            Unload();
  40.             void            Load();
  41.             UInt32            GetFlags();
  42.             
  43.             LStdCheckBox    *m3133T;
  44.             LStdCheckBox    *mHeaders;
  45.             LStdCheckBox    *mKitties;
  46.             LStdCheckBox    *mHamster;
  47.  
  48.             UInt32             moduleLibrary;
  49.  
  50.             enum    {
  51.                 cmd_Set        = 'set ',
  52.                 cmd_Load    = 'load',
  53.                 cmd_Unload    = 'unlo',
  54.                 id_3133T    = '3133',
  55.                 id_Headers    = 'H1  ',
  56.                 id_Kitties    = 'kitt',
  57.                 id_Hamster    = 'hams',
  58.                 
  59.                 kAlert_NeedsAutoPush    = 129,
  60.                 kAlert_NeedsLoading        = 130
  61.                 };
  62. };
  63.  
  64. #endif // _H_CBasicApp